package com.tencreat.domain.account.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author tang jun liang
 * @version 1.0
 * @date 2021/9/6 10:57
 */
@Data
public class AccountRegisterDTO implements Serializable {

    @ApiModelProperty(value = "注册手机号")
    private String phone;

    @ApiModelProperty(value = "注册用户类型, 如不填则为普通用户")
    private Integer userType;

    @ApiModelProperty(value = "注册验证码")
    private String code;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "用户名")
    private String username;

    @NotNull(message = "邀请码不能为空")
    @ApiModelProperty(value = "推荐人uuid")
    private Long referrerUuid;

    @ApiModelProperty(value = "微信OpenId")
    private String wxOpenId;

    @ApiModelProperty(value = "微信unionId")
    private String unionId;

    @ApiModelProperty(value = "用户头像")
    private String avatar;
}
